package flymoke.designpattern.factory.simple_facotry.concrete_creator;

import flymoke.designpattern.factory.simple_facotry.concrete_product.Apple;
import flymoke.designpattern.factory.simple_facotry.concrete_product.Orange;
import flymoke.designpattern.factory.simple_facotry.factory.Fruit;

public class FuritFactory {
	public static Fruit getFurit(String fruit){
		if("Apple".equals(fruit)){
			return new Apple();
		}
		else if("Orange".equals(fruit)){
			return new Orange();
		}
		return null;
	}
}
